public class Intersection {

    String IntersectionId;
    double longitude;
    double latitude;
    double distance;
    boolean visitable;
    Intersection path;

    public Intersection(String intersectionId, double longitude, double latitude, double distance, boolean visitable, Intersection path) {
        IntersectionId = intersectionId;
        this.longitude = longitude;
        this.latitude = latitude;
        this.distance = distance;
        this.visitable = visitable;
        this.path = path;
    }
}
